package phone.qyg.com.qyg.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：lblbh on 2018/6/5 15:16
 * 邮箱：lanbuhan@163.com
 * 功能：订单提交成功返回
 */

public class Order implements Parcelable {

    public String mobile;
    public String roomName;
    public String venueName;
    public String orderTime;
    public String statusName;

    public Order() {}

    @SuppressWarnings("unchecked")
    public Order(Parcel in) {
        mobile = in.readString();
        roomName = in.readString();
        venueName = in.readString();
        orderTime = in.readString();
        statusName = in.readString();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(mobile);
        dest.writeString(roomName);
        dest.writeString(venueName);
        dest.writeString(orderTime);
        dest.writeString(statusName);
    }


    public static final Creator<Order> CREATOR = new Creator<Order>() {
        @Override
        public Order[] newArray(int size) {
            return new Order[size];
        }

        @Override
        public Order createFromParcel(Parcel in) {
            return new Order(in);
        }
    };
}
